﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace 好好学习
{
    public partial class 登录 : System.Web.UI.Page
    {
        bool BL = false;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.TextBox1.Text == string.Format(Request.Form["TextBox1"]) && this.TextBox2.Text == string.Format(Request.Form["TextBox2"]))
            {
                BL = true;
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            if (BL)
            {
                Label3.Text = "你好:" + string.Format(Request.Form["TextBox1"]);
            }
            else 
            {
                Label3.Text = "你输入的账号或密码错误";
            }
        }
    }
}